// cookie操作方法
import { useCookies } from '@vueuse/integrations/useCookies'

const Tokenkey = 'admin-token'

const cookies = useCookies()

// 获取token
export function getToken() {
  return cookies.get(Tokenkey)
}


// 设置token
export function setToken(token) {
  return cookies.set(Tokenkey, token)
}

// 删除token
export function removeToken() {
  return cookies.remove(Tokenkey)
}

